/**
 * 存储localStorage
 */
export const setStore = {
  methods: {
    setStore(name, content) {
      if (!name) return
      if (typeof content !== 'string') {
        content = JSON.stringify(content)
      }
      window.localStorage.setItem(name, content)
    }
  }
}

/**
 * 获取localStorage
 */
export const getStore = {
  methods: {
    getStore(name) {
      if (!name) return
      return window.localStorage.getItem(name)
    }
  }
}
/**
     * 删除localStorage
     */
export const removeStore = {
  methods: {
    removeStore(name) {
      if (!name) return
      window.localStorage.removeItem(name)
    }
  }
}
export const imgUrl={
  methods:{
    imgUrl(src){
     return  'http://img11.360buyimg.com/n1/s300x300_'+src
    },
  }
}

export const imgUrlJd={
  methods:{
    imgUrlJd(src){
      return 'http://img11.360buyimg.com/n1/s450x450_'+src
    }
  }
}